package com.xingyun.kingdee.erp.service.service;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.xingyun.kingdee.erp.common.model.param.base.ErpLoginParam;
import com.xingyun.kingdee.erp.common.model.param.opt.*;

import java.util.List;

/**
 * @author lingo
 * @version v1.0
 * @date 2020/8/11 16:13
 * @Company www.xyb2b.com
 */

public interface ErpService {

    /**
     * 保存表单操作
     * @param erpSaveParam
     * @return
     */
    JSONObject save(ErpSaveFormParam erpSaveParam);

    /**
     * 查看表单接口
     * @param erpViewParam
     * @return
     */
    JSONObject view(ErpViewParam erpViewParam);

    /**
     * 删除接口
     * @param erpDeleteParam
     * @return
     */
    JSONObject delete(ErpDeleteParam erpDeleteParam);

    /**
     * 登录获取 cookie
     * @param erpLoginParam
     * @return
     */
    List<String> loginToGetCookie(ErpLoginParam erpLoginParam);

    /**
     * 下推
     * @param erpPushParam
     * @return
     */
    JSONObject push(ErpPushDownParam erpPushParam);

    /**
     * 审核接口
     * @param erpAuditParam
     * @return
     */
    JSONObject audit(ErpAuditParam erpAuditParam);

    /**
     * 反审核接口
     * @param erpUnAuditParam
     * @return
     */
    JSONObject unAudit(ErpUnAuditParam erpUnAuditParam);

    /**
     * 提交接口
     * @param erpSubmitParam
     * @return
     */
    JSONObject submit(ErpSubmitParam erpSubmitParam);

    /**
     * 单据查询接口
     * @param erpBillQueryParam
     * @return
     */
    JSONArray billQuery(ErpBillQueryParam erpBillQueryParam);
}
